//
//  DLog.h
//  OneToOne
//
//  Created by Herui on 8/18/14.
//  Copyright (c) 2014 jiayuan. All rights reserved.
//

#ifndef OneToOne_DLog_h
#define OneToOne_DLog_h

// 线下开发测试使用DLog替代NSLog

#ifdef DEBUG
// #define DLog(format, ...) NSLog(format, ## __VA_ARGS__)
// DLog(@"[%s][%d]" format,__func__,__LINE__,##__VA_ARGS__);
    #define DLogFileAndLine 1
    #if DLogFileAndLine

        #define DLog(format, ...) NSLog(@"[%@ %d] " format, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__,  ## __VA_ARGS__)
    #else
        #define DLog(format, ...) NSLog(format, ## __VA_ARGS__)
    #endif
#else
    #define DLog(format, ...)

#endif

#endif
